Skip to content

refactor(ng-dev): Add github api retries for increased reliability#3582

Merged
josephperrott merged 1 commit intoangular:mainfrom
thePunderWoman:github-reliability
Apr 1, 2026
Merged

refactor(ng-dev): Add github api retries for increased reliability#3582
josephperrott merged 1 commit intoangular:mainfrom
thePunderWoman:github-reliability

Conversation

@thePunderWoman
Copy link
Copy Markdown
Contributor

Github has been increasingly flakey lately resulting in partial merges and all sorts of issues with failures in the tooling. This adds a retry system to ensure github API calls retry up to 3 times if they fail.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a retry mechanism for GitHub API calls by implementing a helper function and a proxy-based wrapper for Octokit properties. The feedback identifies several critical improvements for the retry logic: the proxy needs to be recursive to handle nested namespaces like 'rest' and requires an 'apply' trap for direct function calls. Additionally, the GraphQL retry logic should be refined to avoid retrying permanent failures, and the 'paginate' method should be included in the retry system.

Copy link
Copy Markdown
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I would love to see the comment about not applying retry recursively to be addressed as well

Github has been increasingly flakey lately resulting in partial merges and all sorts of issues with failures in the tooling. This adds a retry system to ensure github API calls retry up to 3 times if they fail.
@thePunderWoman
Copy link
Copy Markdown
Contributor Author

@josephperrott It has now been addressed. We should be good to go here. :)

@josephperrott josephperrott added the action: merge The PR is ready for merge by the caretaker label Apr 1, 2026
@josephperrott josephperrott merged commit a3baba2 into angular:main Apr 1, 2026
13 checks passed
@josephperrott
Copy link
Copy Markdown
Member

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants